/**
 * 
 */
package com.feonix.designPattern.FactoryMethod.sample1;

import com.feonix.designPattern.FactoryMethod.sample1.framework.Factory;
import com.feonix.designPattern.FactoryMethod.sample1.framework.Product;
import com.feonix.designPattern.FactoryMethod.sample1.idcard.IdCardFactory;

/**
 * @CopyRight (c)1993-2017
 * @Project common_practice
 * @Comments 请输入该类的描述
 * @NameSpace com.feonix.designPattern.FactoryMethod.sample1
 * @Author Feonixzw
 * @CreateDate 2018年1月26日
 */
public class Main {
	
	public static void main(String[] args) {
		Factory factory1 = new IdCardFactory();
		Product product1 = factory1.create("aaa0");
		Product product2 = factory1.create("aaa1");
		Product product3 = factory1.create("aaa2");
		Product product4 = factory1.create("aaa3");
		product1.use();
		product2.use();
		product3.use();
		product4.use();
	}

}
